package HTTPSendIntegrator;

public class AcknowledgeInd extends MmsMessage{
	private String acknowledgeIndMessage;
	
	public AcknowledgeInd(){
		this.acknowledgeIndMessage = "";
		this.mmsMessageType = MMS_MESSAGE_ACKNOWLEDGE_IND;
	}
	
	public String integrate(){

		if (!this.isMessageTypeSet()) return "MessageType not defined";
		if (!this.isTransactionIDSet()) return "transactionID not defined";
		if (!this.isVersionSet()) return "MessageID not defined";
		if (!this.isReportAllowed()) return "Receiver type not defined";
		if (!this.isMessageSenderSet()) return "Sender type not defined";		
		
		acknowledgeIndMessage += MMS_MESSAGE_TYPE + " " + this.getMessageType() + NL;
		acknowledgeIndMessage += MMS_TRANSACTION_ID + " " + this.getTransactionID() + NL;
		acknowledgeIndMessage += MMS_VERSION + " " + this.getVersion() + NL;
		acknowledgeIndMessage += MMS_REPRT_ALLOWED + " " + this.getReportAllowed() + NL;
		
		return this.acknowledgeIndMessage;
	}	
}